package com.system.service;

import com.system.entity.Consumer;

import java.util.List;

public interface IConsumerService {

    public List<Consumer> findAll();

    public Consumer findByCid(Integer cid);

    public int saveConsumer(Consumer consumer);

    public int updateConsumer(Consumer consumer);

    public int deleteConsumer(int cid);

    public Consumer login(String cname, String cpass);

    public Integer sendMail(String email);

    public Consumer findByEmail(String email);
}
